package classloader;
/*
子类访问父类的静态变量 和静态方法，是对父类的主动使用
 */
public class MyTest11 {

    public static void main(String[] args) {

        System.out.println(Parent3.a);
        System.out.println("------------");
        Child3.foo();

    }
}

class Parent3 {
    static int a = 3;

    static {
        System.out.println("Parent3 static block");
    }

    static void foo(){
        System.out.println("Parent3 foo");
    }
}

class Child3 extends Parent3 {
    static int b = 3;

    static {
        System.out.println("Child3 static block");
    }
}
